from setuptools import setup

setup_args = dict(
    name="tornadoWeb",
    author="deng",
    author_email="linlongdeng@163.com",
    description="tornado的框架搭建测试工具",
    license="GPLv3",
    packages=['web'],  # 需要打包的目录列表
    version='0.1-dev',

    # 添加这个选项，在windows下Python目录的scripts下生成exe文件
    # 注意：模块与函数之间是冒号:
    entry_points={'console_scripts': [
        'tornadoWeb = web.web:main',
    ]},

    # long_description=read('README.md'),
    classifiers=[  # 程序的所属分类列表
        "Development Status :: 3 - Alpha",
        "Topic :: Utilities",
        "License :: OSI Approved :: GNU General Public License (GPL)",
    ],
    # 此项需要，否则卸载时报windows error
    zip_safe=False,
    include_package_data=True
)

setup_args['install_requires'] = install_requires = []

with open('requirements.txt') as f:
    for line in f.readlines():
        req = line.strip()
        if not req or req.startswith('#') or '://' in req:
            continue
        install_requires.append(req)


def main():
    setup(**setup_args)


if __name__ == '__main__':
    main()
